/* 基础样式 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

/* 个人主页容器 */
.profile-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* 头部信息 */
.profile-header {
    display: flex;
    padding: 30px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.avatar-container {
    position: relative;
    margin-right: 20px;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.online-status {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 16px;
    height: 16px;
    background-color: #4CAF50;
    border-radius: 50%;
    border: 2px solid #fff;
}

.profile-info {
    flex: 1;
}

.username {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 5px;
}

.bio {
    color: #666;
    margin-bottom: 15px;
    font-size: 15px;
}

.stats {
    display: flex;
    gap: 25px;
}

.stat-item {
    text-align: center;
    cursor: pointer;
}

.stat-number {
    font-size: 20px;
    font-weight: 600;
    display: block;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-left: 20px;
}

.btn {
    padding: 8px 16px;
    border-radius: 20px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.follow-btn {
    background-color: #1DA1F2;
    color: white;
}

.follow-btn:hover {
    background-color: #1991db;
}

.follow-btn.following {
    background-color: #e1e8ed;
    color: #1DA1F2;
}

.message-btn {
    background-color: #e1e8ed;
    color: #1DA1F2;
}

.message-btn:hover {
    background-color: #d1d9e0;
}

/* 关注状态 */
.follow-status {
    padding: 10px 30px;
    background-color: #f8f9fa;
    color: #666;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

/* 笔记部分 */
.notes-section {
    padding: 20px 30px;
}

.notes-section h2 {
    margin-bottom: 20px;
    font-size: 22px;
}

.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.note-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #eee;
}

.note-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.note-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.note-content {
    padding: 15px;
}

.note-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.note-excerpt {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.note-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .avatar-container {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .stats {
        justify-content: center;
        margin-bottom: 15px;
    }

    .action-buttons {
        flex-direction: row;
        margin-left: 0;
    }
}